const app = getApp();
Page({
    datePicker() {
        my.datePicker({
        currentDate: '2016-10-10',
        startDate: '2016-10-9',
        endDate: '2017-10-9',
        success: (res) => {
            console.log(res)
            my.alert({
            title: 'datePicker response: ' + JSON.stringify(res)
            });
        },
        });
    },
})